Since we manipulate parts of the UI (like the switch) in this signal
handler, let's only connect it after setting up the UI.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/705
this._extension = extension;
this._prefsModule = null;
+ this.connect('destroy', this._onDestroy.bind(this));
+
+ this._buildUI();
+
this._extensionStateChangedId = this._app.shellProxy.connectSignal(
'ExtensionStateChanged', (p, sender, [uuid, newState]) => {
if (this.uuid !== uuid)
this._switch.state = state;
this._switch.sensitive = this._canToggle();
});
-
- this.connect('destroy', this._onDestroy.bind(this));
-
- this._buildUI();
}
get uuid() {